]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
NotificationDaemon: stop filtering notifications from empathy
authorGiovanni Campagna <scampa.giovanni@gmail.com>
Tue, 3 Mar 2015 08:30:01 +0000 (00:30 -0800)
committerGiovanni Campagna <scampa.giovanni@gmail.com>
Tue, 3 Mar 2015 22:20:48 +0000 (14:20 -0800)
Now that we don't have our own code for showing telepathy
notifications, we don't need to filter out empathy's.

https://bugzilla.gnome.org/show_bug.cgi?id=745503

js/ui/notificationDaemon.js

index 8d470c9cfbc2226dfb4bf89fa9b79810e25b4d2a..9e942b46f8c1baed4b33cd50abb5fad896612e4d 100644 (file)
@@ -212,13 +212,10 @@ const FdoNotificationDaemon = new Lang.Class({
 
         // Filter out chat, presence, calls and invitation notifications from
         // Empathy, since we handle that information from telepathyClient.js
-        if (appName == 'Empathy' && (hints['category'] == 'im.received' ||
-              hints['category'] == 'x-empathy.im.room-invitation' ||
-              hints['category'] == 'x-empathy.call.incoming' ||
-              hints['category'] == 'x-empathy.transfer.incoming' ||
-              hints['category'] == 'x-empathy.im.subscription-request' ||
-              hints['category'] == 'presence.online' ||
-              hints['category'] == 'presence.offline')) {
+        //
+        // Note that empathy uses im.received for one to one chats and
+        // x-empathy.im.mentioned for multi-user, so we're good here
+        if (appName == 'Empathy' && hints['category'] == 'im.received') {
             // Ignore replacesId since we already sent back a
             // NotificationClosed for that id.
             id = this._nextNotificationId++;